﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace _180FrameWork.CustControls
{
    public partial class CustButton : Button
    {
        public CustButton()
        {
            InitializeComponent();
        }

        private CustIcon _Icon;

        [DefaultValue(CustIcon.add)]
        public CustIcon Icon
        {
            get
            {
                //if (this._Icon == null)
                //    this._Icon = CustIcon.add;
                return this._Icon;
            }
            set
            {
                this._Icon = value;
                this.Image = CustIconHelper.GetIcon(this._Icon);
            }
        }
    }
}
